package com.cloud.flowable.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.flowable.entity.WfCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 流程分类
 */
@Mapper
public interface WfCategoryMapper extends BaseMapper<WfCategory> {

    /**
     * 流程分类列表
     */
    List<WfCategory> getCategoryList(@Param("param") WfCategory category);

    /**
     * 根据code获取流程分类
     */
    WfCategory getCategoryByCode(@Param("code") String code);
}
